package Terminal.Entity.Dominio;

public class ETaskIniziato extends ETaskStato {

	@Override
	public ETimeRecord startTR() {
		
		ETimeRecord tr = new ETimeRecord();
		
		tr.startTR();
		tr.setConsulente( (EConsulente) task.getConsulenteAttuale() );
		//tr.setCosto(task.getCosto());
		tr.setCostoOrario(task.getCostoOrario());
		
		return tr;
	}

	@Override
	public void stopTR(String commento){
		
		ETimeRecord timerecord = task.getTRCorrente(); 
		
		if (timerecord != null)
		{
			timerecord.setTesto(commento);
			timerecord.stopTR();
		}
		
	}

	@Override
	public String getStatoString() {
		return "iniziato";
	}

	/*
	@Override
	public void changeStato() {
		stato.changeStato();
	}*/
}